import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Shop from '../views/Shop.vue'
import Fenlei from '../views/Fenlei.vue'
import Register from '../views/Register.vue'
import Liebiao from '../views/Liebiao.vue'
import Xiangqing from '../views/Xiangqing.vue'
import Login from '../views/Login.vue'
import Me from '../views/Me.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/liebiao',
    name: 'Liebiao',
    component: Liebiao
  },
  {
    path: '/xiangqing',
    name: 'Xiangqing',
    component: Xiangqing
  },
  {
    path: '/fenlei',
    name: 'Fenlei',
    component: Fenlei
  },
  {
    path: '/shop',
    name: 'Shop',
    component: Shop
  },
 
  {
    path: '/me',
    name: 'Me',
    component: Me
  },
  
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },

  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
